<?php
/**
 * Created by PhpStorm
 * User: Jhinwy
 * Date: 11/26/24
 * Time: 5:00 PM
 */

namespace app\adminapi\validate\skits;


use app\common\validate\BaseValidate;


/**
 * SkitsFollow验证器
 * Class SkitsFollowValidate
 * @package app\adminapi\validate
 */
class SkitsBannerValidate extends BaseValidate
{

    /**
     * 设置校验规则
     * @var string[]
     */
    protected $rule = [
        'id'       => 'require',
        'app_id'   => 'require',
        'skits_id' => 'require',
        'sort'     => 'require',
    ];


    /**
     * 参数描述
     * @var string[]
     */
    protected $field = [
        'id'       => 'id',
        'app_id'   => 'app_id',
        'skits_id' => 'skits_id',
        'sort'     => 'sort',
    ];


    public function sceneSave()
    {
        return $this->only(['app_id', 'skits_id', 'sort']);
    }


    public function sceneDelete()
    {
        return $this->only(['id']);
    }

}
